package com.maple.admin.misc.paging.dto;

import java.io.Serializable;
import java.util.List;

/**
 * common result object for data tables query
 * @author luoby
 *
 */
public class PagingResultDTO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3118474144935104152L;
	
	/**
	 * return this as is from request
	 */
	private Integer draw;

	public Integer getDraw() {
		return draw;
	}

	public void setDraw(Integer draw) {
		this.draw = draw;
	}
	
	/**
	 * total counts of db rows
	 */
	private Integer recordsTotal;

	public Integer getRecordsTotal() {
		return recordsTotal;
	}

	public void setRecordsTotal(Integer recordsTotal) {
		this.recordsTotal = recordsTotal;
	}
	
	/**
	 * counts after 'search' on keys
	 */
	private Integer recordsFiltered;

	public Integer getRecordsFiltered() {
		return recordsFiltered;
	}

	public void setRecordsFiltered(Integer recordsFiltered) {
		this.recordsFiltered = recordsFiltered;
	}
	
	/**
	 * data on current page
	 */
	private List<?> data;

	public List<?> getData() {
		return data;
	}

	public void setData(List<?> data) {
		this.data = data;
	}
	
}
